;
(function (CFG, V, C, M, lib) {
    // 初始化全局框架
    top.window.getFrame(document.getElementsByTagName("iframe"));

    // 实例化控制器
    var CONTROL = new C.main();
    var CHARTSCONTROL = new C.ChartsControl();

    // 视图 引入 全局模块
    lib.H.objectExtent(CONTROL, lib);
    lib.H.objectExtent(CHARTSCONTROL, lib);
    // 控制器 引入 数据模型
    CONTROL.M = CHARTSCONTROL.M = new M.main();
    // 实例化视图
    var VIEW = new V.main();

    // 视图 引入 全局模块
    lib.H.objectExtent(VIEW, lib);
    // 视图 引入 控制器
    VIEW.Control = CONTROL;
    VIEW.ChartsControl = CHARTSCONTROL;

    // 初始化视图属性
    VIEW.init({
        ids: CFG.ids,
        paths: CFG.paths,
        templates: CFG.templateClass
    });

})(
    {
        ids: [ "searchLayerclose", "publicSearch", "condtionList4", "conditionSearch", "resetConditionSearch", "condtionList", "condtionNull", "condList", "condList2", "condLayer", "condLayerBtn", "closeCond", "fullScreen", "maplists", "mapcontent", "goback", "searchType", "searchText", "search", "maplist", "changePageNum", "showtag", "resultCount", "changePage", "jumpPage", "jumpPageSubmit", "siderhide" , "searchModal1content", "searchModal2content", "searchModal1", "searchModal2", "searchModalCheckAll", "searchModalReCheck", "searchModalSubmit", "searchModalClose", "searchModalbtn", "searchModaltextarea", "colorLevels", "RelationalPath", "saveConditioncontainer", "downCharts", "resetallsearchwrap", "condwrapper", "dataLayer", "allsearchform", "loading", "dataContainer", "tableResponsive", "closePage", "chartsList", "chartsContainer", "tableShow", "drop", "search", "sreachwrap", "closeallsearchwrap", "submitallsearchwrap" ],
        paths: {
            getSearchData: document.getElementById("getSearchPath").value,
            getrelationPath: document.getElementById("getrelationPath").value
        },
        templateClass: "templates"
    },
    { main: View },
    { main: Control, ChartsControl: ChartsControl },
    { main: Model },
    // 引入所需模块
    { $: jQuery, H: Handle, toastr: toastr, DataGrid: DataGrid, echarts: echarts, CanvasDown: CanvasDown, Relational: Relational, TableColorLevelRender: TableColorLevelRender, CascadeData: CascadeData  }
);

